![]() |
FillRgn |
||||
Header: | Quickdraw.h | Carbon status: | Supported | |
Fills a region with any available bit pattern.
void FillRgn ( rgn, const Pattern *pat );
A handle to the region to fill.
The bit pattern to use for the fill.
Using the patCopy pattern mode, the FillRgn function draws the interior of the region with the pattern defined in the Pattern structure that you specify in the pat parameter.
This function leaves the location of the graphics pen unchanged.
This function depends on the local coordinate system of the current graphics port. If you draw a region in a graphics port different from the one in which you defined the region, it may not appear in the proper position in the graphics port.
If any horizontal or vertical line drawn through the region would intersect the region’s outline more than 50 times, the results of this graphics operation are undefined.
Use GetPattern and GetIndPattern to get a pattern stored in a resource.
Use PaintRgn to draw the interior of a region with the pen pattern for the current graphics port. To fill a region with a pixel pattern, use the FillCRegion function.
The FillRgn function may move or purge memory blocks in the application heap; do not call this function at interrupt time.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)